/*
 * Copyright (c) 2018-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace TencentCloud.Cwp.V20180228.Models
{
    using Newtonsoft.Json;
    using System.Collections.Generic;
    using TencentCloud.Common;

    public class ModifyMalwareWhiteListRequest : AbstractModel
    {
        
        /// <summary>
        /// 白名单模式； 0MD5白名单，1自定义
        /// </summary>
        [JsonProperty("Mode")]
        public ulong? Mode{ get; set; }

        /// <summary>
        /// 规则唯一ID
        /// </summary>
        [JsonProperty("Id")]
        public ulong? Id{ get; set; }

        /// <summary>
        /// quuid 列表
        /// </summary>
        [JsonProperty("QuuidList")]
        public string[] QuuidList{ get; set; }

        /// <summary>
        /// 是否全部主机； 0否，1是。
        /// </summary>
        [JsonProperty("IsGlobal")]
        public ulong? IsGlobal{ get; set; }

        /// <summary>
        /// 匹配模式 ；0 精确匹配，1模糊匹配(废弃)
        /// </summary>
        [JsonProperty("MatchType")]
        public ulong? MatchType{ get; set; }

        /// <summary>
        /// 文件名称(正则)；长度不超过200个
        /// </summary>
        [JsonProperty("FileName")]
        public string[] FileName{ get; set; }

        /// <summary>
        /// 文件目录(正则)；长度不超过200个，内容base64转义
        /// </summary>
        [JsonProperty("FileDirectory")]
        public string[] FileDirectory{ get; set; }

        /// <summary>
        /// 文件后缀；长度不超过200个，内容base64转义（废弃）
        /// </summary>
        [JsonProperty("FileExtension")]
        public string[] FileExtension{ get; set; }

        /// <summary>
        /// MD5列表
        /// </summary>
        [JsonProperty("Md5List")]
        public string[] Md5List{ get; set; }


        /// <summary>
        /// For internal usage only. DO NOT USE IT.
        /// </summary>
        public override void ToMap(Dictionary<string, string> map, string prefix)
        {
            this.SetParamSimple(map, prefix + "Mode", this.Mode);
            this.SetParamSimple(map, prefix + "Id", this.Id);
            this.SetParamArraySimple(map, prefix + "QuuidList.", this.QuuidList);
            this.SetParamSimple(map, prefix + "IsGlobal", this.IsGlobal);
            this.SetParamSimple(map, prefix + "MatchType", this.MatchType);
            this.SetParamArraySimple(map, prefix + "FileName.", this.FileName);
            this.SetParamArraySimple(map, prefix + "FileDirectory.", this.FileDirectory);
            this.SetParamArraySimple(map, prefix + "FileExtension.", this.FileExtension);
            this.SetParamArraySimple(map, prefix + "Md5List.", this.Md5List);
        }
    }
}

